/*
 * @Author: H.
 * @Date: 2021-12-07 15:47:03
 * @LastEditTime: 2021-12-14 14:16:35
 * @Description:
 */

import { App } from 'vue'
import { formatUtcString } from '@/utils/date-format'
export default function registerProperties(app: App): void {
  app.config.globalProperties.$filters = {
    formatTime(value: string, format?: string) {
      return formatUtcString(value, format)
    }
  }
}
